package com.yyh.service.impl;

import com.yyh.entity.Users;
import com.yyh.entity.UsersParam;
import com.yyh.mapper.UsersMapper;
import com.yyh.service.IUsersService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author yangyueheng
 * @since 2020-06-02
 */
@Service
public class UsersServiceImpl extends ServiceImpl<UsersMapper, Users> implements IUsersService {

	@Autowired
	UsersMapper usersMapper;
	
	@Override
	public List<Users> getZiXunShi(UsersParam u) {
		// TODO Auto-generated method stub
		return usersMapper.getZiXunShi(u);
	}

	@Override
	public boolean qiandao(Integer id) {
		// TODO Auto-generated method stub
		return usersMapper.qiandao(id);
	}

	@Override
	public boolean qiantui(Integer id) {
		// TODO Auto-generated method stub
		return usersMapper.qiantui(id);
	}

	@Override
	public int dingshi() {
		// TODO Auto-generated method stub
		return usersMapper.dingshi();
	}

}
